<!DOCTYPE html>

<head>
    <title>登录页面</title>
</head>
<body>

<!-- 判断 message 是否有值 -->
<div th:if="${msg != null}">
    <p th:text="${msg}"></p>
</div>

<form action="/login" method="post">
    <label for="username">Username:</label>
    <input type="text" id="username" name="username">
    <label for="password">Password:</label>
    <input type="password" id="password" name="password">
    <input type="submit" value="登录">
</form>
</body>
